cmake_minimum_required(VERSION 3.16)

project(ethercat_igh)

set(CMAKE_BUILD_TYPE "Release")

find_package(EtherCAT REQUIRED)

include_directories(${CMAKE_SOURCE_DIR})

add_executable(master_stack_test
        main.c
        math_ops.c
        motor_control.c
)

target_link_libraries(master_stack_test PUBLIC EtherLab::ethercat pthread m)